/**
 *  @file HttpResponse.h
 */
#ifndef _HTTPRESPONSE_H_
#define _HTTPRESPONSE_H_

#include "HttpMessage.h"
#include "HttpConst.h"
#include "../../text/CFString.h"

namespace cppflib
{

namespace net
{

namespace http
{

/**
 *  A class which contains information about a HTTP response
 */
class _DLLAPI HttpResponse : public HttpMessage
{
private:
    int responseCode;
    CFString reasonPhrase;

private:
    HttpResponse(void);

public:
    HttpResponse(pcwstr_t ver, int resCode, pcwstr_t reason);
    virtual ~HttpResponse(void);

    int GetResponseCode(void);
    const CFString& GetResponseReason(void);
};

} // end of namespace http

} // end of namespace net

} // end of namespace cppflib


#endif
